import request from '@/utils/request'
//随访信息
export function listFollowYzyPlanForm(data) {
  return request({
    url: '/api-fol/followYzyPlanPatForm/listFollowYzyPlanForm',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//随访信息
export function getFormContent(data) {
  return request({
    url: '/api-fol/followYzyPlanPatFormContent/getFormContent',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//查询该患者所有的随访计划及随访问卷
export function getFollowYzyPlanFormByPat(data) {
  return request({
    url: '/api-fol/followYzyPlan/getFollowYzyPlanFormByPat',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//查询该患者所有的随访计划及随访问卷
export function over(data) {
  return request({
    url: '/api-fol/followYzyPlanPats/followYzyPlanPat/over',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//弹出框下一步所查询的表单内容
export function getFollowYzyQuestionnaire(data) {
  return request({
    url: '/api-fol/followYzyQuestionnaire/getFollowYzyQuestionnaire',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//保存填写的表单
export function saveFolPatForm(data) {
  return request({
    url: '/api-fol/followYzyPlanPatForm/saveFolPatForm',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//修改填写的表单
export function updateFolFormContent(data) {
  return request({
    url: '/api-fol/followYzyPlanPatFormContent/updateFolFormContent',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//删除填写的表单
export function deleteFolPatForm(data) {
  return request({
    url: '/api-fol/followYzyPlanPatForm/deleteFolPatForm',
    method: 'get',
    params:data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
